/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package e.odbo.data.impexp.model.transform;

import e.odbo.data.impexp.FieldConverse;
import e.odbo.data.impexp.FieldGenerator;
import e.odbo.data.impexp.model.AbstractImpExpTableDefinition;
import e.odbo.data.impexp.model.ImpExpRowDefinition;

import java.util.Map;

/**
 * @author wushunlian
 */
public abstract class AbstractTableTransform extends AbstractImpExpTableDefinition {

    protected AbstractImpExpTableDefinition defaultTable;

    public AbstractTableTransform(AbstractImpExpTableDefinition table) {
        super(table.getBaseTable(), table.getTableSentenceBuilder());
        defaultTable = table;
    }

    @Override
    public void addRow(ImpExpRowDefinition row) {
        defaultTable.addRow(row);
    }

    @Override
    public Map<Integer, FieldGenerator> getFieldGenerators() {
        return defaultTable.getFieldGenerators();
    }

    @Override
    public Map<Integer, FieldConverse> getFiledConversions() {
        return defaultTable.getFiledConversions();
    }

    @Override
    public int[] getFilterIndexs() {
        return defaultTable.getFilterIndexs();
    }

    public ImpExpRowDefinition getRow(int rowIndex) {
        return defaultTable.getRow(rowIndex);
    }

    @Override
    public int getState() {
        return defaultTable.getState();
    }

    @Override
    public int getRowCount() {
        return defaultTable.getRowCount();
    }


}
